﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace DemoUserControl.Form_Control
{
    public partial class Form1 : UserControl
    {
        private string bien;

        public string Bien
        {
            get { return bien; }
            set { bien = value; }
        }
        public Form1()
        {
            InitializeComponent();            
        }
        public void load()
        {
            label1.Text = bien;
        }
        public DataTable GetAllTable()
        {
            DataTable table = new DataTable();
            table.Columns.Add("STT", typeof(string));
            table.Columns.Add("Loại giấy tờ, biểu mẫu", typeof(string));
            table.Columns.Add("Chọn", typeof(bool));
            table.Columns.Add("Số lượng", typeof(int));
            table.Columns.Add("LoaiHienThi", typeof(string));
            table.Columns.Add("ID", typeof(int));
            table.Columns.Add("LoaiVanBan", typeof(string));
            table.Rows.Add(null, null, true, null, null, null, null);
            return table;
        }
        public void LoadTable()
        {
            uG_table.DataSource = GetAllTable();
        }
        private void Form1_Load(object sender, EventArgs e)
        {
            //uG_table.DataSource = GetAllTable();
        }
    }
}
